project(cv_test) # 项目名称

# 找到opencv的依赖和头文件
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

aux_source_directory(./src SRCS) # 源文件目录

add_executable(${PROJECT_NAME} ${SRCS}) # 输出的可执行文件名称

# 链接生成文件和opencv库文件
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})